# encoding: utf-8
""" 
@version: v1.0 
@author: autumner 
@license: Apache Licence  
@contact: 18322313385@163.com 
@site:  https://gitee.com/autumner/pythoncookbook
@software: PyCharm 
@file: shell_getpass.py 
@time: 2019/8/1 上午9:15
@note:
获取输入的密码
"""
import getpass

# user = getpass.getuser() # getuser()获取到是的当前系统登陆的用户名
'自定义用户名使用下方法'
usr = input('Enter your username:')
pwd = getpass.getpass('Enter your password:')
print(usr, pwd)


